/*
* Copyright (C) 2020 ~ 2024 chaigec All Rights Reserved.
*
* Author:     chaigec <chaigec@163.com>
* Maintainer: chaigec <chaigec@163.com>

 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
*/

#ifndef MK_HTTP_RESPONSE_HEADER_H
#define MK_HTTP_RESPONSE_HEADER_H
#include "MkHttpMessage.h"
#include "MkHttpUtil.h"

class MkApi CMkHttpResponse :public CMkHttpMessage
{
public:
    CMkHttpResponse();
    virtual ~CMkHttpResponse();

    const MkHttpStatusCode& GetStatusCode() const { return m_StatusCode; }
    void SetCode(const MkHttpStatusCode& Code) { m_StatusCode = Code; }
    void Release();
protected:
    virtual Uint32 OnParseHeaderLine(const MkString& HeaderLine) override;
    virtual Uint32 GetHeaderLine(MkString& HeaderLine) override;
private:
    MkHttpStatusCode               m_StatusCode;
};


#endif
